package com.coco.bargain.mapper;

import com.coco.bargain.pojo.TbBargainItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HanSama
 * @date 2021年07月22日 19:23
 */
@Mapper
public interface BargainItemMapper {

    void addBargainItem(TbBargainItem sku);

    List<TbBargainItem> findBargainItemListByBargainGoodsId(Long id);

    void updateBargainItem(TbBargainItem sku);

    TbBargainItem findOneById(Long bargainItemId);

    void add(TbBargainItem tbBargainItem);

    void update(@Param("record") TbBargainItem tbBargainItem);

    TbBargainItem findById(Long id);
}
